package edu.hnu.userserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.hnu.commonutils.Result;
import edu.hnu.userserver.entity.Admins;
import edu.hnu.userserver.service.AdminsService;
import edu.hnu.userserver.mapper.AdminsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AdminsServiceImpl extends ServiceImpl<AdminsMapper, Admins>
    implements AdminsService {
    @Autowired
    AdminsMapper adminsMapper;
   public Result getAllAdmin(){
       List<Admins> adminsList = adminsMapper.selectList(null);
       return Result.ok()
               .data(adminsList);
   }

}




